import config from "@/config"
import request from "@/utils/request"

export default {
    login: {
        url: `${config.API_PREFIX}/login`,
        name: "登录",
        post: function (data = {}) {
            return request.post(this.url, data);
        }
    },
    logout: {
        url: `${config.API_PREFIX}/logout`,
        name: "登出",
        get: function () {
            return request.get(this.url);
        }
    }
}
